

import 'package:furaha_mkopo/cache/fm_cache_tool.dart';

import '../init/fm_init_model.dart';

class FMInitManager {
  static final FMInitManager _instance = FMInitManager._internal();

  factory FMInitManager() => _instance;

  FMInitManager._internal();

  FMInitModel? initModel;

  bool get isLogin {
    return FMCacheTool.getSessionId().isNotEmpty;
  }

  bool get popLocation {
    return initModel?.witnesses == 1;
  }

  String get loginProtocol {
    return initModel?.dogsx ?? "";
  }

  bool get language {
    return initModel?.lang == 2;
  }

}